STU3 Candidate

This page is part of the FHIR Specification (v1.8.0: STU 3 Draft). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions

(No assigned work group) Maturity Level: 0Context: Any

The official URL for this profile is:

http://hl7.org/fhir/StructureDefinition/cqif-questionnaire

A questionnaire with the ability to specify behavior associated with questions or groups of questions

This profile was published on Sat, May 30, 2015 00:00+1000 as a draft by Health Level Seven, Inc. - CDS WG.

Description of Profiles, Differentials, Snapshots, and how the XML and JSON presentations work.

This structure is derived from Questionnaire.

NameFlagsCard.TypeDescription & Constraintsdoco
.. Questionnaire 0..*A questionnaire with the ability to specify behavior associated with questions or groups of questions
... item 0..*BackboneElement
.... cqif-basic-condition 0..1stringA condition that determines whether or not the group is applicable
URL: http://hl7.org/fhir/StructureDefinition/cqif-basic-condition
.... cqif-basic-initialValue 0..1stringAn expression that provides the initial value for the answer to the question
URL: http://hl7.org/fhir/StructureDefinition/cqif-basic-initialValue
.... cqif-basic-calculatedValue 0..1stringAn expression that provides a calculated value for the answer to the question
URL: http://hl7.org/fhir/StructureDefinition/cqif-basic-calculatedValue
... cqif-basic-library 0..*Reference(Library)A library containing logic referenced by the questionnaire
URL: http://hl7.org/fhir/StructureDefinition/cqif-basic-library

doco Documentation for this format
NameFlagsCard.TypeDescription & Constraintsdoco
.. Questionnaire I0..*A questionnaire with the ability to specify behavior associated with questions or groups of questions
... id ∑0..1idLogical id of this artifact
... meta ∑0..1MetaMetadata about the resource
... implicitRules ?!∑0..1uriA set of rules under which this content was created
... language 0..1codeLanguage of the resource content
Binding: Common Languages (extensible)
... text I0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... cqif-basic-library I0..*Reference(Library)A library containing logic referenced by the questionnaire
URL: http://hl7.org/fhir/StructureDefinition/cqif-basic-library
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
... url ∑0..1uriGlobally unique logical identifier for questionnaire
... identifier ∑0..*IdentifierExternal identifiers for this questionnaire
... version ∑0..1stringLogical identifier for this version of Questionnaire
... status ?!∑1..1codedraft | published | retired
Binding: QuestionnaireStatus (required)
... date ∑0..1dateTimeDate this version was authored
... publisher ∑0..1stringOrganization/individual who designed the questionnaire
... telecom ∑0..*ContactPointContact information of the publisher
... useContext ∑0..*CodeableConceptQuestionnaire intends to support these contexts
Binding: Context of Use ValueSet (extensible)
... title ∑0..1stringName for the questionnaire
... concept ∑0..*CodingConcept that represents the overall questionnaire
Binding: Questionnaire Question Codes (example)
... subjectType ∑0..*codeResource that can be subject of QuestionnaireResponse
Binding: ResourceType (required)
... item I0..*BackboneElementQuestions and sections within the Questionnaire
.... id 0..1stringxml:id (or equivalent in JSON)
.... cqif-basic-condition I0..1stringA condition that determines whether or not the group is applicable
URL: http://hl7.org/fhir/StructureDefinition/cqif-basic-condition
.... cqif-basic-initialValue I0..1stringAn expression that provides the initial value for the answer to the question
URL: http://hl7.org/fhir/StructureDefinition/cqif-basic-initialValue
.... cqif-basic-calculatedValue I0..1stringAn expression that provides a calculated value for the answer to the question
URL: http://hl7.org/fhir/StructureDefinition/cqif-basic-calculatedValue
.... modifierExtension ?!∑0..*ExtensionExtensions that cannot be ignored
.... linkId 1..1stringUnique id for item in questionnaire
.... definition I0..1uriElementDefinition - details for the item
.... concept ∑I0..*CodingConcept that represents this item within in a questionnaire
Binding: Questionnaire Question Codes (example)
.... prefix 0..1stringE.g. "1(a)", "2.5.3"
.... text ∑0..1stringPrimary text for the item
.... type I0..1codegroup | display | boolean | decimal | integer | date | dateTime +
Binding: QuestionnaireItemType (required)
.... enableWhen ?!∑I0..*BackboneElementOnly allow data when:
que-7: enableWhen must contain either an 'answer' or an 'answered' element
..... id 0..1stringxml:id (or equivalent in JSON)
..... extension 0..*ExtensionAdditional Content defined by implementations
..... modifierExtension ?!∑0..*ExtensionExtensions that cannot be ignored
..... question 1..1stringQuestion that determines whether item is enabled
..... hasAnswer I0..1booleanEnable when answered or not
..... answer[x] I0..1boolean, decimal, integer, date, dateTime, instant, time, string, uri, Attachment, Coding, Quantity, Reference(Resource)Value question must have
.... required I0..1booleanWhether the item must be included in data results
.... repeats I0..1booleanWhether the item may repeat
.... readOnly I0..1booleanDon't allow human editing
.... maxLength I0..1integerNo more than this many characters
.... options I0..1Reference(ValueSet)Valueset containing permitted answers
.... option I0..*BackboneElementPermitted answer
..... id 0..1stringxml:id (or equivalent in JSON)
..... extension 0..*ExtensionAdditional Content defined by implementations
..... modifierExtension ?!∑0..*ExtensionExtensions that cannot be ignored
..... value[x] 1..1integer, date, time, string, CodingAnswer value
Binding: Questionnaire Answer Codes (example)
.... initial[x] I0..1boolean, decimal, integer, date, dateTime, instant, time, string, uri, Attachment, Coding, Quantity, Reference(Resource)Default value when item is first rendered
.... item I0..*Unknown reference to #Questionnaire:cqif-questionnaire.item
Nested questionnaire items

doco Documentation for this format

todo

Differential View

This structure is derived from Questionnaire.

NameFlagsCard.TypeDescription & Constraintsdoco
.. Questionnaire 0..*A questionnaire with the ability to specify behavior associated with questions or groups of questions
... item 0..*BackboneElement
.... cqif-basic-condition 0..1stringA condition that determines whether or not the group is applicable
URL: http://hl7.org/fhir/StructureDefinition/cqif-basic-condition
.... cqif-basic-initialValue 0..1stringAn expression that provides the initial value for the answer to the question
URL: http://hl7.org/fhir/StructureDefinition/cqif-basic-initialValue
.... cqif-basic-calculatedValue 0..1stringAn expression that provides a calculated value for the answer to the question
URL: http://hl7.org/fhir/StructureDefinition/cqif-basic-calculatedValue
... cqif-basic-library 0..*Reference(Library)A library containing logic referenced by the questionnaire
URL: http://hl7.org/fhir/StructureDefinition/cqif-basic-library

doco Documentation for this format

Snapshot View

NameFlagsCard.TypeDescription & Constraintsdoco
.. Questionnaire I0..*A questionnaire with the ability to specify behavior associated with questions or groups of questions
... id ∑0..1idLogical id of this artifact
... meta ∑0..1MetaMetadata about the resource
... implicitRules ?!∑0..1uriA set of rules under which this content was created
... language 0..1codeLanguage of the resource content
Binding: Common Languages (extensible)
... text I0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... cqif-basic-library I0..*Reference(Library)A library containing logic referenced by the questionnaire
URL: http://hl7.org/fhir/StructureDefinition/cqif-basic-library
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
... url ∑0..1uriGlobally unique logical identifier for questionnaire
... identifier ∑0..*IdentifierExternal identifiers for this questionnaire
... version ∑0..1stringLogical identifier for this version of Questionnaire
... status ?!∑1..1codedraft | published | retired
Binding: QuestionnaireStatus (required)
... date ∑0..1dateTimeDate this version was authored
... publisher ∑0..1stringOrganization/individual who designed the questionnaire
... telecom ∑0..*ContactPointContact information of the publisher
... useContext ∑0..*CodeableConceptQuestionnaire intends to support these contexts
Binding: Context of Use ValueSet (extensible)
... title ∑0..1stringName for the questionnaire
... concept ∑0..*CodingConcept that represents the overall questionnaire
Binding: Questionnaire Question Codes (example)
... subjectType ∑0..*codeResource that can be subject of QuestionnaireResponse
Binding: ResourceType (required)
... item I0..*BackboneElementQuestions and sections within the Questionnaire
.... id 0..1stringxml:id (or equivalent in JSON)
.... cqif-basic-condition I0..1stringA condition that determines whether or not the group is applicable
URL: http://hl7.org/fhir/StructureDefinition/cqif-basic-condition
.... cqif-basic-initialValue I0..1stringAn expression that provides the initial value for the answer to the question
URL: http://hl7.org/fhir/StructureDefinition/cqif-basic-initialValue
.... cqif-basic-calculatedValue I0..1stringAn expression that provides a calculated value for the answer to the question
URL: http://hl7.org/fhir/StructureDefinition/cqif-basic-calculatedValue
.... modifierExtension ?!∑0..*ExtensionExtensions that cannot be ignored
.... linkId 1..1stringUnique id for item in questionnaire
.... definition I0..1uriElementDefinition - details for the item
.... concept ∑I0..*CodingConcept that represents this item within in a questionnaire
Binding: Questionnaire Question Codes (example)
.... prefix 0..1stringE.g. "1(a)", "2.5.3"
.... text ∑0..1stringPrimary text for the item
.... type I0..1codegroup | display | boolean | decimal | integer | date | dateTime +
Binding: QuestionnaireItemType (required)
.... enableWhen ?!∑I0..*BackboneElementOnly allow data when:
que-7: enableWhen must contain either an 'answer' or an 'answered' element
..... id 0..1stringxml:id (or equivalent in JSON)
..... extension 0..*ExtensionAdditional Content defined by implementations
..... modifierExtension ?!∑0..*ExtensionExtensions that cannot be ignored
..... question 1..1stringQuestion that determines whether item is enabled
..... hasAnswer I0..1booleanEnable when answered or not
..... answer[x] I0..1boolean, decimal, integer, date, dateTime, instant, time, string, uri, Attachment, Coding, Quantity, Reference(Resource)Value question must have
.... required I0..1booleanWhether the item must be included in data results
.... repeats I0..1booleanWhether the item may repeat
.... readOnly I0..1booleanDon't allow human editing
.... maxLength I0..1integerNo more than this many characters
.... options I0..1Reference(ValueSet)Valueset containing permitted answers
.... option I0..*BackboneElementPermitted answer
..... id 0..1stringxml:id (or equivalent in JSON)
..... extension 0..*ExtensionAdditional Content defined by implementations
..... modifierExtension ?!∑0..*ExtensionExtensions that cannot be ignored
..... value[x] 1..1integer, date, time, string, CodingAnswer value
Binding: Questionnaire Answer Codes (example)
.... initial[x] I0..1boolean, decimal, integer, date, dateTime, instant, time, string, uri, Attachment, Coding, Quantity, Reference(Resource)Default value when item is first rendered
.... item I0..*Unknown reference to #Questionnaire:cqif-questionnaire.item
Nested questionnaire items

doco Documentation for this format

XML Template

JSON Template

todo

 

Other representations of profile: Schematron

PathNameConformanceValueSet
Questionnaire.languageCommon LanguagesextensibleCommon Languages
Questionnaire.statusQuestionnaireStatusrequiredQuestionnaireStatus
Questionnaire.useContextContext of Use ValueSetextensibleContext of Use ValueSet
Questionnaire.conceptQuestionnaire Question CodesexampleQuestionnaire Question Codes
Questionnaire.subjectTypeResourceTyperequiredResourceType
Questionnaire.item.conceptQuestionnaire Question CodesexampleQuestionnaire Question Codes
Questionnaire.item.typeQuestionnaireItemTyperequiredQuestionnaireItemType
Questionnaire.item.option.value[x]Questionnaire Answer CodesexampleQuestionnaire Answer Codes
IdPathDetailsRequirements
que-7Questionnaire.item.enableWhenenableWhen must contain either an 'answer' or an 'answered' element
XPath: count(*[starts-with(local-name(.), 'answer')]|answered) = 1
.